import axios from "axios"

let newAxiso = axios.create({
    baseURL:"URL",
    timeout:10000,
    withCredentials:true,
    header:{ 'Access-Control-Allow-Origin':'*' }
})

export default{
    get: function(url,params){
        return newAxiso.get(url,{params:params})
    },
    post:function(url,params){
        return newAxiso.post(url,params)
    }
}